home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / alib / setattrs.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  2KB  |  82 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setattrs.c,v 1.2 1996/09/17 18:05:45 digulla Exp $
  4.     $Log: setattrs.c,v $
  5.     Revision 1.2  1996/09/17 18:05:45  digulla
  6.     Same names for same parameters
  7.  
  8.     Revision 1.1  1996/08/28 17:52:29  digulla
  9.     First step to implement amiga.lib
  10.     BOOPSI Utility functions
  11.  
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <intuition/classes.h>
  17. #include <intuition/intuitionbase.h>
  18. #include <stdarg.h>
  19.  
  20. extern struct IntuitionBase * IntuitionBase;
  21.  
  22. /*****************************************************************************
  23.  
  24.     NAME */
  25.     #include <intuition/classusr.h>
  26.     #include <clib/intuition_protos.h>
  27.  
  28.     ULONG SetAttrs (
  29.  
  30. /*  SYNOPSIS */
  31.     APTR  object,
  32.     ULONG tag1,
  33.     ...)
  34.  
  35. /*  FUNCTION
  36.     Changes several attributes of an object at the same time. How the
  37.     object interprets the new attributes depends on the class.
  38.  
  39.     INPUTS
  40.     object - Change the attributes of this object
  41.     tag1 - The first of a list of attribute/value-pairs. The last
  42.         attribute in this list must be TAG_END or TAG_DONE.
  43.         The value for this last attribute is not examined (ie.
  44.         you need not specify it).
  45.  
  46.     RESULT
  47.     Depends in the class. For gadgets, this value is non-zero if
  48.     they need redrawing after the values have changed. Other classes
  49.     will define other return values.
  50.  
  51.     NOTES
  52.     This function sends OM_SET to the object.
  53.  
  54.     EXAMPLE
  55.  
  56.     BUGS
  57.  
  58.     SEE ALSO
  59.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  60.     "Basic Object-Oriented Programming System for Intuition" and
  61.     "boopsi Class Reference" Dokument.
  62.  
  63.     INTERNALS
  64.  
  65.     HISTORY
  66.     29-10-95    digulla automatically created from
  67.                 intuition_lib.fd and clib/intuition_protos.h
  68.  
  69. *****************************************************************************/
  70. {
  71.     va_list args;
  72.     ULONG   retval;
  73.  
  74.     va_start (args, tag1);
  75.  
  76.     retval = SetAttrsA (object, (struct TagItem *)&tag1);
  77.  
  78.     va_end (args);
  79.  
  80.     return (retval);
  81. } /* SetAttrs */
  82.